﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TaskFramework
{
    public delegate void RootTaskDeadHandler(int rootTaskId);

    public interface ITaskTracker
    {
        void AddTask(int taskId);
        void AddTask(int taskId, int routedByTaskId);
        int ResolveRootTaskId(int taskId);
        void RemoveTask(int taskId);
        event RootTaskDeadHandler RootTaskDead;
        bool IsTracked(int taskId);
    }
}
